package core;

/**
 * Trida reprezentujici datove medium (nosic)
 * @author vojta
 */
public class Medium {

    private int id;
    private String medium;

    public Medium(int id, String medium) {
        this.id = id;
        this.medium = medium;
    }

    public Medium(String medium) {
        this.medium = medium;
    }

    public Medium(int id) {
        this(id, "");
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getMedium() {
        return medium;
    }

    public void setMedium(String medium) {
        this.medium = medium;
    }

    @Override
    public String toString() {
        return this.medium;
    }

}
